package com.logistics.erp.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.logistics.erp.entity.domain.ErpInvbill;
import com.logistics.erp.entity.model.ErpInvBillSave;
import com.logistics.erp.mapper.ErpInvBillMapper;
import com.logistics.utils.tool.StringUtils;
import org.springframework.stereotype.Service;

/**
 * <p>
 * ERP领料单 服务实现类
 * </p>
 *
 * @author kaihan.wang
 * @since 2024-07-02
 */
@Service
public class ErpInvBillService extends ServiceImpl<ErpInvBillMapper, ErpInvbill>{


    /**
     * 存在更新erp领料单流向 否则新增
     * @param save
     */
    public Integer save(ErpInvBillSave save){
        ErpInvbill domain = ErpInvbill.build(save);
        this.save(domain);
        return domain.getId();
    }

}
